package models

import (
	"gorm.io/gorm"
	"time"
)

type Orders struct {
	Id        int64          `gorm:"column:id;type:bigint(10);primaryKey;not null;" json:"id"`
	Name      string         `gorm:"column:name;type:varchar(255);not null;" json:"name"`
	Password  string         `gorm:"column:password;type:varchar(255);not null;" json:"password"`
	CreateAt  time.Time      `gorm:"column:create_at;type:datetime(3);default:CURRENT_TIMESTAMP(3);" json:"create_at"`
	UpdateAt  time.Time      `gorm:"column:update_at;type:datetime(3);default:CURRENT_TIMESTAMP(3);" json:"update_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
	GoodName  string         `gorm:"column:good_name;type:varchar(255);not null;" json:"good_name"`
	GoodPrice float64        `gorm:"column:good_price;type:decimal(10, 0);not null;" json:"good_price"`
	PayStatus string         `gorm:"column:pay_status;type:varchar(255);not null;" json:"pay_status"`
}
